import request from '@/utils/request'

// 查询余票信息列表
export function listDailyTrainTicket(query) {
  return request({
    url: '/business/daily-train-ticket/list',
    method: 'get',
    params: query
  })
}

// 查询余票信息详细
export function getDailyTrainTicket(id) {
  return request({
    url: '/business/daily-train-ticket/' + id,
    method: 'get'
  })
}

// 新增余票信息
export function addDailyTrainTicket(data) {
  return request({
    url: '/business/daily-train-ticket',
    method: 'post',
    data: data
  })
}

// 修改余票信息
export function updateDailyTrainTicket(data) {
  return request({
    url: '/business/daily-train-ticket',
    method: 'put',
    data: data
  })
}

// 删除余票信息
export function delDailyTrainTicket(id) {
  return request({
    url: '/business/daily-train-ticket/' + id,
    method: 'delete'
  })
}


// 查询余票信息分组列表
export function listDailyTrainTicketByGroup(query) {
  return request({
    url: '/business/daily-train-ticket/listByGroup',
    method: 'get',
    params: query
  })
}